package com.code.day03.homework;

public class Macbook {
    void mac_open()  { System.out.println("Macbook open"); }
    void mac_close() { System.out.println("Macbook close"); }

    // 多态
    void useUSB(USB dev) {
        dev.open();
        System.out.println("Macbook using " + dev.getClass().getSimpleName());
        dev.close();
    }
}
